package com.example.tliaswebmangement.service.impl;

import com.example.tliaswebmangement.mapper.EmpMapper;
import com.example.tliaswebmangement.pojo.Emp;
import com.example.tliaswebmangement.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public Emp login(Emp emp){
        return empMapper.getByUsernameAndPassword(emp);
    }
}
